package is.progetto2.test;

import is.progetto2.activity.Activity;
import is.progetto2.activity.Bind;
import is.progetto2.activity.BindType;
import is.progetto2.activity.Job;
import is.progetto2.activity.ResultSchedule;
import is.progetto2.activity.Scheduler;


public class testClass {

	public static void main(String[] args) {
		Activity a=new Activity();
		Job j1=a.createJob(3);
		Job j2=a.createJob(4);
		
		Bind b1=a.createBind(BindType.BEGIN, j1, BindType.FIRST, BindType.END, j2);
		
		System.out.println(j1);
		System.out.println(j2);
		System.out.println(b1);
		System.out.println(a);
//		System.out.println(a.getActivitySorted());
		Scheduler s=new Scheduler(a);
		s.resolve();
		ResultSchedule rs=s.getResult();
		System.out.println(rs);
	}

}
